package org.qh.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum InitStatusEnum implements IntArrayValuable {


    NO(0, "否"), YES(1, "是");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(InitStatusEnum::getStatus).toArray();

    /**
     * 状态
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }


}
